import { Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { FormItem } from '../getControls';
import { FieldSchemaSection } from '../json-schema';

@Component({
  selector: 'app-form-item',
  templateUrl: './form-item.component.html',
  styleUrl: './form-item.component.scss'
})
export class FormItemComponent {
  @Input() control!: FormItem;
  @Input() group!: FormGroup;
  @Input() groupName?: string;
  @Input() schema?: FieldSchemaSection;
}
